const joi = require('joi');

const name = joi.string().required();

const alias = joi.string().alphanum().required();

const id = joi.number().min(1).required();

exports.add_cate_schema = {
  body: {
    name,
    alias,
  },
};

exports.del_cate_schema = {
  // * params :id 查询字符串

  params: {
    id,
  },
};

exports.update_cate_schema = {
  body: {
    Id: id,
    name,
    alias,
  },
};
